package cn.iocoder.yudao.module.system.controller.admin.datascope.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.util.*;

@Schema(description = "管理后台 - 权限范围新增/修改 Request VO")
@Data
public class DataScopeSaveReqVO {

    @Schema(description = "菜单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22167")
    private Long id;

    @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "菜单名称不能为空")
    private String name;

    @Schema(description = "应用编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "应用编码不能为空")
    private String appCode;

    @Schema(description = "环境分组编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "环境分组编码不能为空")
    private String appEnvCode;

    @Schema(description = "菜单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "菜单状态不能为空")
    private Integer status;

    @Schema(description = "数据范围编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "数据范围编码不能为空")
    private String dataScopeCode;

}